<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>公司信息管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#value").focus();
            $("#inputForm").validate({
                submitHandler: function (form) {
                    loading('正在提交，请稍等...');
                    form.submit();
                },
                errorContainer: "#messageBox",
                errorPlacement: function (error, element) {
                    $("#messageBox").text("输入有误，请先更正。");
                    if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
                        error.appendTo(element.parent().parent());
                    } else {
                        error.insertAfter(element);
                    }
                }
            });
        });
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li><a href="${ctx}/business/companyinfo">公司信息</a></li>
    <li class="active"><a href="${ctx}/business/companyinfo/see?id=${companyInfo.id}">公司信息查看</a></li>
</ul>
<br/>
<form:form id="inputForm" modelAttribute="companyInfo" action="${ctx}/business/companyinfo/save" method="post"
           class="form-horizontal">
    <form:hidden path="id"/>
    <tags:message content="${message}"/>
    <div class="control-group">
        <label class="control-label">公司名称:</label>
        <div class="controls">
            <label class="lbl">${companyInfo.office.name}</label>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">地址:</label>
        <div class="controls">
            <label class="lbl"> ${companyInfo.address}</label>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">开户行:</label>
        <div class="controls">
            <label class="lbl">${companyInfo.bankAccountName}</label>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">银行账号:</label>
        <div class="controls">
            <label class="lbl">${companyInfo.bankAccountNo}</label>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">公司全称:</label>
        <div class="controls">
            <label class="lbl">${companyInfo.companyName}</label>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">联系电话:</label>
        <div class="controls">
            <label class="lbl">${companyInfo.contactNumber}</label>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">公司法人:</label>
        <div class="controls">
            <label class="lbl">${companyInfo.legalPerson}</label>
        </div>
    </div>
    <div class="form-actions">
        <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
    </div>
</form:form>
</body>
</html>